package com.bgs.eat.shopEatInType.service.impl;

import com.bgs.eat.config.CommonResult;
import com.bgs.eat.shopEatInType.entity.ShopEatInTypeEntity;
import com.bgs.eat.shopEatInType.mapper.ShopEatInTypeMapper;
import com.bgs.eat.shopEatInType.service.ShopEatInTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName ShopEatInTypeServiceImpl
 * @Description TODO
 * @Author lzy
 * @Date 2022/10/12 8:54
 **/
@Service
public class ShopEatInTypeServiceImpl implements ShopEatInTypeService {

    @Autowired
    ShopEatInTypeMapper shopEatInTypeMapper;

    /**
    * @Description 获取堂食类型列表信息（门户展示-商家版）
    * @Author lzy
    * @Date 2022/10/12 8:57
    * @Return com.bgs.eat.config.CommonResult
    */
    @Override
    public CommonResult getShopEatInTypeList() {
        List<ShopEatInTypeEntity> shopEatInTypeEntities = shopEatInTypeMapper.selectAll();
        return CommonResult.ok(shopEatInTypeEntities);
    }
}
